﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Windows.Forms;
using MediaPortal.Plugins.Trailers;
using MediaPortal.Plugins.Trailers.Providers;

namespace MyTrailersConfigTest
{
  class Program
  {
    [STAThreadAttribute]
    static void Main(string[] args) {
        System.Windows.Forms.Application.EnableVisualStyles();

        //TrailersPlugin plugin = new TrailersPlugin();
        //plugin.ShowPlugin();

        AppleTrailers data = new AppleTrailers();
        //YahooTrailers  data = new YahooTrailers();
        //Gametrailers data = new Gametrailers();
        data.Init(new TrailerCollection());
        Index index = data.GetIndex("/just_added");
        //Index newindex = data.GetIndex(index[0].Key);
        //Index index = data.GetIndex("/latest");
        
        //Index index = data.GetIndex("http://rss.ent.yahoo.com/movies/newtrailers.xml");
        //Trailer trailer = data.GetDetails(index[12].Key);
        Trailer trailer = data.GetDetails("/trailers/wb/terminatorsalvation/");
       
        
    }
  }
}
